/*******************************************************************************
 * Copyright (c) 2004, 2006 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.ui.internal.intro;

/**
 * Registry for introduction elements.
 * 
 * @since 1.2
 */
public interface IIntroRegistry {

    /**
     * Return the number of introduction extensions known by this registry.
     * 
     * @return the number of introduction extensions known by this registry 
     */
    int getIntroCount();

    /** 
     * Return the introduction extensions known by this registry.
     * 
     * @return the introduction extensions known by this registry 
     */
    IIntroDescriptor[] getIntros();

    // RAP [bm]: no product support - using branding instead
//    /**
//     * Return the introduction extension that is bound to the given product.
//     * 
//     * @param productId the product identifier
//     * @return the introduction extension that is bound to the given product, 
//     * or <code>null</code> if there is no such binding
//     */
//    IIntroDescriptor getIntroForProduct(String productId);
    /**
     * Return the introduction extension that is bound to the given branding.
     * 
     * @param brandingId the product identifier
     * @return the introduction extension that is bound to the given branding, 
     * or <code>null</code> if there is no such binding
     */
    IIntroDescriptor getIntroForBranding(String brandingId);

    // ENDRAP
    
    /**
     * Find an intro descriptor with the given identifier.
     * 
     * @param id the id
     * @return the intro descriptor, or <code>null</code>
     */
    IIntroDescriptor getIntro(String id);
}
